//============================================================================
// Name        : ְ������ϵͳ.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <string>

#include "./workerManager.h"
#include "./worker.h"
#include "./employee.h"
#include "./manager.h"
#include "./boss.h"

using namespace std;

int main() {

	WorkerManager wm;
	int selected;
	while (true) {
		wm.showMenu();
		cout << "请输入您的选择：" << endl;
		cin >> selected;

		switch (selected) {
		case 0: //退出程序
			wm.exitSystem();
			break;
		case 1: //添加职工
			wm.add_Emp();
			break;
		case 2: //显示职工
			wm.show_Emp();
			break;
		case 3: //删除职工
			wm.del_Emp();
			break;
		case 4: //修改职工
			wm.mod_Emp();
			break;
		case 5: //查找职工
			wm.find_Emp();
			break;
		case 6: //排序职工
			wm.sort_Emp();
			break;
		case 7: //清空文件
			wm.clean_File();
			break;
		default: //
			cout << "输入错误！" << endl;
			//system("cls");
			break;
		}
		selected = 0;
	}

	return 0;
}

